<jsp:include page="data?view=menu&action=list" />
<h2>Menu Management</h2>
<p><a href="index.jsp?style=add&act=menu">New Menu</a></p>
<c:if test="${not empty requestScope.menus}">
    <table cellpadding="5" cellspacing="5">
        <tbody>
            <tr>
                <th>ID</th>
                <th>Name</th>
                <th>Description</th>
                <th></th>
            </tr>
        <c:forEach items="${requestScope.menus}" var="menu">
            <tr>
                <td><a href="?style=detail&act=menu&id=${menu.id}">${menu.id}</a></td>
                <td>${menu.name}</td>
                <td>${menu.description}</td>
                <td><a href="#" onclick="confirmDelete('menu', ${menu.id})">Delete</a></td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
</c:if>
<c:if test="${empty requestScope.menus}">
    No menu found
</c:if>
<hr />
